Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu_guest_agent: adjust check method for isa-serial situation #3781

Closed

Conversation

6-dehan
Copy link
Contributor

@6-dehan 6-dehan commented Jul 20, 2023

since there is a minor change for starting qemu-ga.exe, it will display debug info about version of mingw-qemu-ga so that auto program couldn't catch the expected condition to determine cmd run finished. so remove invaluable parameter '-v' after confirm with dev.

ID: 2199116
Signed-off-by: demeng [email protected]

@6-dehan
Copy link
Contributor Author

6-dehan commented Jul 21, 2023

@vivianQizhu could you please help to review? @MiriamDeng @fbq815 @BohdanMar does it affect your scenario? if so, please help to review it.
(01/10) repeat1.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(01/10) repeat1.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (188.77 s)
(02/10) repeat1.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(02/10) repeat1.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (103.92 s)
(03/10) repeat2.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(03/10) repeat2.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (58.97 s)
(04/10) repeat2.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(04/10) repeat2.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (102.53 s)
(05/10) repeat3.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(05/10) repeat3.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (58.93 s)
(06/10) repeat3.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(06/10) repeat3.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (103.02 s)
(07/10) repeat4.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(07/10) repeat4.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (59.20 s)
(08/10) repeat4.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(08/10) repeat4.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (104.74 s)
(09/10) repeat5.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(09/10) repeat5.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (58.20 s)
(10/10) repeat5.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: STARTED
(10/10) repeat5.Host_RHEL.m9.u3.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.isa_serial.gagent_check_log.q35: PASS (103.54 s)
RESULTS : PASS 10 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

@fbq815
Copy link
Contributor

fbq815 commented Jul 25, 2023

since isa only support on x86, no affection on s390x

@BohdanMar
Copy link
Contributor

This case isn't supported on aarch64, no affection.

log_str = session.cmd_output(get_log_cmd).strip().split('\n')[-1]
pattern = r"%s" % qga_cmd
if not re.findall(pattern, log_str, re.M | re.I):
if not log_str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would make the checkpoint meaningless, I would suggest to check at least the command return value if we don't check the detail content.

Copy link
Contributor

@vivianQizhu vivianQizhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As comment in line, please check.

@6-dehan 6-dehan force-pushed the for-2199116-pass-qga-debug-output branch 2 times, most recently from 1e03fcc to 5de31dc Compare August 8, 2023 09:48
@6-dehan 6-dehan force-pushed the for-2199116-pass-qga-debug-output branch from 5de31dc to b718424 Compare August 22, 2023 02:45
@6-dehan 6-dehan closed this Aug 24, 2023
@6-dehan
Copy link
Contributor Author

6-dehan commented Aug 24, 2023

something goes wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants